  <h3><?php echo $c->event->title; ?> <small>(<?php echo CodeLookupUtil::getValue("event_type", $c->event->event_type); ?>)</h3>

  <table id="data">
	<tr><th>Status:</th><td><?php echo CodeLookupUtil::getValue("event_status", $c->event->event_status); ?></td></tr>
    <?php if ($c->contact->id > 0) { ?>
	<tr><th>Contact</th><td><?php
	   $name = $c->contact->firstname . " " . $c->contact->lastname; echo HtmlUtil::internalLink($name, "viewContact", $userRoles, array("action" => "load", "id" => $c->contact->id), $name); ?></td></tr>
	<?php } ?>
	<tr><th>Location</th><td><?php echo $c->location->name; ?></td></tr>
	<tr><th>Date</th><td><?php echo HtmlUtil::formatDateOnly($c->event->start); ?></td></tr>
	<tr><th>Time</th><td><?php echo HtmlUtil::formatTimeOnly($c->event->start) . " - " . HtmlUtil::formatTimeOnly($c->event->end); ?></td></tr>
	<tr><th>&nbsp;</th><td><?php echo $c->event->note; ?></td></tr>
	<?php if ($c->event->is_public != "T") { ?>
		<tr><th align="center" colspan=2>This event is private</th></tr>
	<?php } ?>
    <tr><th>Setlist:</th>
    	<td>
    		<ol>
    		<?php
    		foreach ($c->setlistSongs as $setlistSong)
    		{
    			echo "<li>" . $setlistSong->song->title . " ";
    			if (strlen($setlistSong->song->audio) > 0)
    				echo HtmlUtil::internalLink("[listen]", "audio", $userRoles, array("action" => "load", "id" => $setlistSong->song->id));
    			if (strlen($setlistSong->song->info) > 0)
    				echo HtmlUtil::internalLink("[tab]", "tab", $userRoles, array("action" => "load", "id" => $setlistSong->song->id));
    			echo "  " . $setlistSong->setlist->note . " ";
    			echo "</li>";
    		}
    		?>
    		</ol>
    	</td>
    </tr>
   </table>